if (window.webkitNotifications) {
	var taskPool = new TaskPool();
	window.setInterval(function() {
		taskPool.initTaskPool();
		var pops = taskPool.getPopTask();
		for ( var i = 0; i < pops.length; i++) {
			// args[0]: the image, args[1]: the title, args[2]: the body
			var notification = window.webkitNotifications.createNotification(
					"", "Task on time (" + pops[i].getSimpleTaskTime() + ")",
					pops[i].getDesc());
			notification.show();
			pops[i].setStatus(3);
		}
		taskPool.storeTaskpool();
	}, 10 * 1000);
}